package com.hliushi.exception;

import com.hliushi.response.ResultCode;

/**
 * @ClassName BusinessErrorException
 * @Description 自定义业务异常
 * @Author liushi
 * @Date 2020/9/17 7:25
 * @Version V1.0
 **/
public class BusinessErrorException extends RuntimeException {

    private static final long serialVersionUID = -2950598531661261017L;

    ResultCode resultCode;

    public BusinessErrorException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
